@import url('./switch.css');
@import url('./transition.css');
@import url('./range.css');
@import url('./ghost.css');

html,
body {
  margin: 0;
}
*::-webkit-scrollbar {
  width:12px;
  height:12px;
}
*::-webkit-scrollbar-track {
  background:transparent;
}
*::-webkit-scrollbar-track-piece {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background:rgb(44, 44, 44);
  border-radius:6px;
}
input,
textarea {
  width: 100%;
  resize: none;
}
.main {
  display: flex;
  height: 100vh;
  overflow-y: hidden;
}
.left {
  padding: 0 20px;
  min-width: 200px;
  max-width: 200px;
  overflow-y: auto;
}
.left #in {
  margin-bottom: 10px;
}
.left #place {
  margin-bottom: 10px;
}
.left .btn {
  margin: 10px 2px 20px;
}
.middle{
  position: relative;
  min-width: 1410px;
  width: 100%;
  padding: 20px;
  border-left: 1px solid gray;
  overflow: auto;
  user-select: none;
  background-color: rgb(90, 69, 55);
}
.cell-box{
  width: 75px;
  height: 75px;
  line-height: 75px;
  display: inline-block;
  border-radius: 3px;
  box-shadow: 2px 2px 5px #111;
  text-align: center;
  position: relative;
  background-color: rgb(139, 146, 92);
}
.cell-box:nth-child(odd){
  background-color: rgb(127, 131, 85);
}
.cell{
  width: 35px;
  height: 35px;
  line-height: 35px;
  display: inline-block;
  border-radius: 3px;
  box-shadow: 2px 2px 5px #111;
  text-align: center;
  position: relative;
  margin: 20px;
  font-weight: bold;
  color: rgba(40, 40, 40, 0.8);
  z-index: 3;
}
.in-box{
  margin: 0;
  position: absolute;
  left: 20px;
  transition: all 0.5s;
}
.green{
  background: rgb(157, 183, 84);
}
.red{
  background: rgb(200, 106, 85);
}
.orange{
  background: rgb(198, 142, 97);
}
.purple{
  background: rgb(141, 141, 193);
}
.command-line{
  width: 150px;
  height: 30px;
  line-height: 30px;
  margin-bottom: 8px;
  position: relative;
  padding: 0 10px;
  font-weight: bold;
  border-radius: 3px;
  box-shadow: 2px 2px 5px #111;
  transition: width 0.1s;
  color: rgba(40, 40, 40, 0.8);
  font-size: 17px;
  z-index: 1;
  cursor: pointer!important;
}
.command-line[draggable=true]{
  opacity: 0.5;
}
.answer{
  border-radius: 0 10px 10px 10px;
  background-color: rgb(151, 129, 111);
  width: 100%;
  padding: 10px;
  height: calc(100vh - 80px);
  min-height: 655px;
  overflow-y: auto;
}
#command-wrap{
  position: relative;
  display: flex;
  padding: 20px 10px 10px 60px;
  min-height: calc(100% - 90px);
}
.base{
  height: 414px;
  min-width: 170px;
  border-radius: 10px 0 0 10px;
  border-right: 0;
  padding: 10px;
  background-color: rgb(130, 104, 83);
  position: relative;
}
#drag-wrap{
  width: 170px;
}
#drag-wrap .transition{
  display: block;
  width: 100%;
  height: 100%;
}
.flip-list-move {
  transition: transform 0.5s;
}
.modal{
  background:#111;
  height: 434px;
  width: 190px;
  position:absolute;
  top:0;
  left:0;
  pointer-events: none;
  line-height: 400px;
  text-align: center;
  font-size: 50px;
  color: white;
  z-index: 1;
}
.subject{
  padding: 10px;
  background-color: rgb(220, 214, 181);
  border-radius: 5px;
  box-shadow: 2px 2px 5px #111;
  color: rgb(104, 97, 78);
  font-size: 24px;
}
.selected{
  position: absolute;
  height: 65px;
  width: 65px;
  border: 10px dashed rgb(157, 183, 84);
  z-index: 1;
  pointer-events: none;
  transition: all 0.1s;
  animation: loopAnimation 0.5s ease-in-out infinite alternate;
}
@keyframes loopAnimation {
  0% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(0.95);
  }
}
.scene{
  margin: 80px 80px 0;
  min-width: 380px;
  max-width: 380px;
  position:relative;
}
.dropbtn {
  border: none;
  cursor: pointer;
}
.dropdown {
  position: relative;
}
.dropdown-content {
  cursor: pointer;
  z-index: 10;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  background-image: linear-gradient(rgba(88, 88, 88, 1) 2px,rgba(223, 197, 159, 0.9) 4px);
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  transition: all 0.1s;
  max-height: 230px;
  overflow-y: auto;
}
.dropdown-content div {
  font-size: 18px;
  color: rgb(74, 67, 48);
  font-weight: bold;
  padding: 12px 16px;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.1s;
}
.dropdown-content div:hover {
  background-color: rgb(74, 67, 48);
  color: rgb(220, 214, 181);
}
.dropdown:hover .dropdown-content {
  visibility: visible;
  opacity: 1;
}
.input{
  min-width: 35px;
  max-width: 35px;
  padding: 20px;
  background-color: rgb(60, 48, 44);
  box-shadow: 2px 2px 5px #111;
  position: relative;
}
.output{
  margin-right: 50px;
  min-width: 35px;
  max-width: 35px;
  padding: 20px;
  background-color: rgb(60, 48, 44);
  box-shadow: 2px 2px 5px #111;
  position: relative;
}
.corner-mark{
  font-weight: bold;
  font-size: 12px;
  line-height:12px;
  position: absolute;
  bottom: 5px;
  right: 5px;
  z-index:2;
  color:rgba(30, 30, 30, 0.5);
}
.exec-btn {
  height: 50px;
  line-height: 48px;
  font-size: 32px;
  width: 50px;
  text-align: center;
  background-color: rgb(130, 154, 79);
  color: rgb(74, 50, 40);
  box-shadow: -2px 2px 5px #111;
  border-radius: 3px;
  display: inline-block;
  cursor: pointer;
  transform: rotate(-90deg);
}
.stop-btn{
  background-color: rgb(166, 87, 70);
}
.btn-disabled{
  background-color: rgb(95, 95, 95);
  color: rgb(80, 80, 80);
  cursor:default;
}
.exec-btn:not(.btn-disabled):active{
  box-shadow: -2px 2px 5px #111 inset;
  font-size: 30px;
}
.pointer{
  color: rgb(88, 158, 42);
  font-size: 28px;
  z-index: 9;
  line-height: 27px;
  text-align: center;
  width: 30px;
  height: 30px;
  position: absolute;
  top: 8px;
  left: 0;
  text-shadow: 2px 1px 4px #111;
  /* transition: all 0.5s; */
}
.order{
  background-color:rgb(141, 119, 101);
  height: calc(100% + 7px);
  width: 60px;
  position: absolute;
  top: 12px;
  left: -10px;
}
.order-number{
  color: rgb(104, 97, 78);
  font-weight: bold;
  line-height: 30px;
  height: 30px;
  width: 30px;
  text-align: center;
  margin: 8px 0 0 27px;
}
.btn-wrap{
  width: 360px;
  margin: 50px auto 0;
}
.player{
  /* width: 50px;
  height: 50px;
  background-color: #ccc;
  border-radius: 50%; */
  position: absolute;
  z-index: 3;
  box-shadow: 2px 2px 5px #111;
}
.hand{
  z-index: 4;
  margin: 0;
  position: absolute;
  top: -20px;
  left: 7px;
}
